home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1920 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  812 b 

  1. Path: castle.nando.net!news
  2. From: Bob Wade <bwade@nando.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Needed: Friend function example.
  5. Date: Sat, 13 Jan 1996 21:55:56 -0800
  6. Organization: News & Observer Public Access
  7. Message-ID: <30F89AEC.3673@nando.net>
  8. NNTP-Posting-Host: grail1920.nando.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b5 (Win16; I)
  13.  
  14. Could someone please provide an example of a friend function which does 
  15. not involve istream or ostream, and does not involve a global function?
  16. I am having trouble declaring a friend function which compiles.  Making 
  17. the class a friend works fine.  Every source I have found has the same 
  18. example. I know this stuff is supposed to be reusable but this is 
  19. ridiculous! ;)
  20. Thanks in advance,
  21. Bob
  22.